<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'leaseviolations-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php //echo $form->labelEx($model,'idTenant'); ?>
		<?php echo $form->hiddenField($model,'idTenant'); ?>
		<?php //echo $form->error($model,'idTenant'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'idOccupancy'); ?>
		<?php echo $form->hiddenField($model,'idOccupancy'); ?>
		<?php //echo $form->error($model,'idOccupancy'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LeaseViolationShortDescription'); ?>
		<?php echo $form->textArea($model,'LeaseViolationShortDescription',array('rows'=>5,'cols'=>50)); ?>
		<?php echo $form->error($model,'LeaseViolationShortDescription'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LeaseViolationDateOfOccurance'); ?>
		<?php //echo $form->textField($model,'LeaseViolationDateOfOccurance'); 
				$this->widget('zii.widgets.jui.CJuiDatePicker', array(
    
					'model'=>$model,
				    'attribute'=>'LeaseViolationDateOfOccurance',
				    // additional javascript options for the date picker plugin
				    'options'=>array(
						'dateFormat'=>'yy-mm-dd',
				        'showAnim'=>'fold',
				    ),
				    'htmlOptions'=>array(
				        
				    ),
				));
		
		?>
		<?php echo $form->error($model,'LeaseViolationDateOfOccurance'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Add' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->